#!/usr/bin/env python
UI_FILE = "login.ui"
#UI_FILE = "/usr/local/share/pygtkteste/ui/pygtkteste.ui"


class GUI:
	def __init__(self, Gtk):
		self.Gtk = Gtk
		self.builder = Gtk.Builder()
		self.builder.add_from_file(UI_FILE)
		self.builder.connect_signals(self)
		
		window = self.builder.get_object('window1')
		
		window.show_all()
		window.connect('destroy', lambda w: Gtk.main_quit())
		
	def on_button2_clicked(self, botao):
		self.Gtk.main_quit()
